package com.rgs.base.database.mapper;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @author Ren Gaoshuai
 * @Description 批量插入主键
 * @date 2022-01-24 11:22
 **/
@RegisterMapper
public interface BatchExtendMapper<T> {

    @Options()
    @InsertProvider(type = InsertBatchExtendProvider.class, method = "dynamicSQL")
    int insertBatchList(List<? extends T> recordList);


}
